import java.awt.*;
import javax.swing.JFrame;

/*
 * ETS ?cole de technologue sup/rieure Project4 LOG120
 * 
 * @param x = entree d<
 * @return 
 */

public class MyFrame extends JFrame{
	
	//Final Variables (Constants)
	private static final String JFRAME_TITLE = "GAME";
	private static final long serialVersionUID = 1L;
	
	private static final int 
	JFRAME_POSITION_X = 100, 
	JFRAME_POSITION_Y = 100, 
	JFRAME_WIDTH = 920, 
	JFRAME_HEIGHT = 330;
	
	
	
	private ImagePanel scorePanel;
	private ImagePanel itemsPanel;
	private GamePanel gamePanel;
	
	//Constructor Creates Frame and sets to visible.
	protected MyFrame(){
		
		setTitle(JFRAME_TITLE);
		setBounds(JFRAME_POSITION_X,JFRAME_POSITION_Y, JFRAME_WIDTH, JFRAME_HEIGHT);
		setResizable(true);
		setLayout(null);
		setBackground(Color.black);	
		
		scorePanel = new ImagePanel(200,300,5,5);
		gamePanel = new GamePanel(500,300,210,5,Controller.getLevel());
		itemsPanel = new ImagePanel(200,300,715,5);
		
		
		this.add(scorePanel);
		this.add(itemsPanel);
		this.add(gamePanel);
	
		setVisible(true);
	}

}//End JFrame
 